//
//  JOPassTextField.m
//  taxin_song
//
//  Created by song on 16/1/17.
//  Copyright © 2016年 song. All rights reserved.
//

#import "JOPassTextField.h"

@implementation JOPassTextField

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(instancetype) initWithFrame:(CGRect)frame
{
    
    self = [super initWithFrame:frame];
    if(self)
    {
        self.font = [UIFont systemFontOfSize:13];
        UIImageView  *imgview = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"login_password"]];
        imgview.contentMode =UIViewContentModeCenter;
        self.leftView = imgview;
        // 如果要显示搜索框左边的试图，一定要设置左边的试图模式
        self.leftViewMode = UITextFieldViewModeAlways;
        self.secureTextEntry = YES;
        self.placeholder= @"请输入密码";
        
    }

    return self;
}
@end
